﻿<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
  

  <xsl:template match="/root">
      <table class="datatable" border="0" cellpadding="0" cellspacing="0">
            <tr>
				<th></th>
        <th>Ref</th>
        <th>Date</th>
				<th>Hours</th>
				<th>Log</th>				
            </tr>
			  
            <xsl:for-each select="./project/time/item">
              <tr>
                <td>
					<div class="ajaxbutton10 hidewhencomplete">
						<xsl:attribute name="cmd">
							<xsl:text>/desktopmodules/Nbright/NBrightEspace/XmlConnector.ashx?cmd=deltime&amp;itemid=</xsl:text>
							<xsl:value-of select="./@id" disable-output-escaping="yes"/>
							<xsl:text>&amp;ctltype=PROJECTIME</xsl:text>
							<xsl:text>&amp;projectid=</xsl:text>
							<xsl:value-of select="./genxml/hidden/projectid" disable-output-escaping="yes"/>
              <xsl:text>&amp;emp=</xsl:text>
              <xsl:value-of select="./genxml/textbox/txtemployee" disable-output-escaping="yes"/>
            </xsl:attribute>
              <img src="/DesktopModules/NBright/NBrightEspace/img/delete.png" />
          </div>
				</td>

                <td>
					<xsl:value-of select="./genxml/textbox/txtemployee" disable-output-escaping="yes"/>
				</td>
                <td>
                  <xsl:value-of select="substring(./genxml/textbox/txtdate,1,10)" disable-output-escaping="yes"/>
                </td>
                <td>
					<xsl:value-of select="./genxml/textbox/txthours" disable-output-escaping="yes"/>
				</td>
                <td>
                  <xsl:value-of select="./genxml/textbox/txtlog" disable-output-escaping="yes"/>
                </td>
              </tr>

            </xsl:for-each>

          </table>

		
    </xsl:template>

               
</xsl:stylesheet>
